<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>新增任务</title>
 <link rel="stylesheet" type="text/css" href="http://192.168.2.92/static/layui/css/layui.css">
  <script src="http://192.168.2.92/static/layui/layui.js"></script>
 <script src="http://192.168.2.92/static/js/jquery-1.11.3.min.js"></script>
  <script>


  </script>
  <style>
    #tableshow{
      width: 100%;
      padding-top: 2%;
      padding-left: 20px;
    }
  </style>
</head>
<body class="layui-layout-body">
  <span class="layui-word-aux	">添加/编辑任务</span>
  <div>

    <form class="layui-form" method="post" action="/ci/taskaddone">
  <div class="layui-form-item">
    <label class="layui-form-label">任务名称</label>
    <div class="layui-input-block">
      <input type="text" name="task_name" required  lay-verify="required" placeholder="请输入任务名称" autocomplete="off" class="layui-input">
    </div>
  </div>
     <div class="layui-form-item">
    <label class="layui-form-label">工作名称</label>
    <div class="layui-input-block">
      <input type="text" name="job_name" required  lay-verify="required" placeholder="请输入工作名称" autocomplete="off" class="layui-input">
    </div>
  </div>
   <div class="layui-form-item">
    <label class="layui-form-label">Token</label>
    <div class="layui-input-block">
      <input type="text" name="ding_token" required  lay-verify="required" placeholder="请输入ding_token" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo1">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
  </div>
<script>

layui.use('form', function(){
  var form = layui.form;
  //监听提交
  form.on('submit(formDemo1)', function(data){
    var articleFrom = data.field;
    {#window.history.go(-1)#}
    {#  window.location.href = '/ci/';#}
    return true;

  });
});
</script>
</body>
</html>
